try:
    try:
        num = int(input('请输入一个数字:'))
        res = 1 / num
    except ValueError as e:
        print(e)
except ZeroDivisionError as e:
    print(e)
